package com.shelpe.services.simbasync.service.simbaproxy;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="${simbaproxy.serviceID}", url="${simbaproxy.url}")
@RequestMapping(value = "/simba")
public interface ProductsProxy {
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.adgroup.onlineitemsvon.get")
	public String getOnlineItems(@RequestParam("nick") String nick, @RequestParam("page_size") int pageSize, @RequestParam("page_no") int pageNo);

	@RequestMapping(method = RequestMethod.GET, value = "/taobao.item.seller.get")
	public String getItemsDetailInfo(@RequestHeader("tenantID") long userId, @RequestParam("num_iid") long numIid, @RequestParam("fields") String fields);
	
}